package thread.local;

/**
 * Created mangcao with 2019/9/5 11:50
 * Description:
 */
public class Localde {

    public static void main(String[] args) {


        System.out.println();
        ThreadLocalContext.get().setLang("s");

        System.out.println("0" + ThreadLocalContext.get());
        System.out.println("0" + ThreadLocalContext.get());



        new Thread(() -> {
            System.out.println("1" + ThreadLocalContext.get());
            System.out.println("1" + ThreadLocalContext.get());
        }).start();


        new Thread(() -> {
            System.out.println("2" + ThreadLocalContext.get());
            System.out.println("2" + ThreadLocalContext.get());
        }).start();
    }

}
